import { createApp } from 'vue'
//  import './style.css'
import App from './App.vue'

//1.导入vant组件
import { Button,Field,CellGroup,Tabbar,TabbarItem , Search,Image as VanImage } from 'vant'
//2.导入vant样式
import 'vant/lib/index.css'

import router from '@/router/index.js'

// import router from './router'

//3.创建vue实例并挂载到#appimport { createPinia } from 'pinia'

import { createPinia } from 'pinia'
import pinias from 'pinia-plugin-persist'
const pinia=createPinia()
pinia.use(pinias)
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

//4.创建vue实例并挂载到#app
const app=createApp(App)
//注册vant组件
app.use(Button)
app.use(Field)
app.use(CellGroup);
app.use(Tabbar);
app.use(TabbarItem);
app.use(Search);
app.use(VanImage);
//注册element-plus组件
app.use(ElementPlus)
//注册路由
app.use(router)
app.mount('#app')


